<?php
namespace app\admin\controller;

use think\Controller;
use app\admin\model\Admin as Adminmode;

class Admin  extends Controller
{
    public function list()
    {
    	
    	return view();
    }

    public function edit()
    {
    	
    	return view();
    }


        public function add()
    {
        if(request()->isPost()){
            $data=input('post.');
            $admin = new Adminmode();

            if($admin->addadmin($data)){
                $this->success('数据添加成功');
            }else{
                $this->error('数据添加失败');
            }
        }else{
            return view();
        }

    }

}
